﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ValidationFramework.Reflection;

namespace ValidationFramework.Configuration
{
    public class RuleContext
	{
		public Type TypeToValidate { get; set; }
		public ICachedReflectionInfo TargetInfo { get; set; }

		/// <summary>
		/// Initializes a new instance of the RuleConfigurationContext class.
		/// </summary>
		public RuleContext(Type typeToValidate, ICachedReflectionInfo info)
		{
			TargetInfo = info;
			TypeToValidate = typeToValidate;
		}
	}
}
